package com.dgut.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * @TableName deliverynotes
 */
@TableName(value = "deliverynotes")
@Data
@AllArgsConstructor
@Builder
@NoArgsConstructor
public class Deliverynotes implements Serializable {
    /**
     * 发货单编号
     */
    @TableId(value = "delivery_id", type = IdType.AUTO)
    private Long deliveryId;

    /**
     * 订单编号
     */
    @TableField(value = "order_id")
    private Long orderId;

    /**
     * 商品编号
     */
    @TableField(value = "product_id")
    private Long productId;

    /**
     * 商品名称
     */
    @TableField(value = "product_name")
    private String productName;

    /**
     * 发货数量
     */
    @TableField(value = "quantity_shipped")
    private Integer quantityShipped;

    /**
     * 发货日期
     */
    @TableField(value = "delivery_date")
    private LocalDateTime deliveryDate;

    /**
     * 快递单号
     */
    @TableField(value = "tracking_number")
    private String trackingNumber;


    private LocalDateTime createTime;//创建时间
    private Integer status;//状态
    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}